package cn.medemede.k1;

public abstract class Shape {

    static final double PI=3.141593;

    String name;

    public abstract double area();

    public abstract double perimeter();

    Shape(){
        name="图形";
    }

    @Override
    public String toString() {
        return "Shape{" +
                "name='" + name + '\'' +
                '}';
    }

    void show(){
        System.out.println(this.toString());
    }

}
